/**
 * @file      stk_allow.h
 * @copyright Copyright (c) 2020, CYG-ZCW Co., Ltd. All Rights Reserved.
 * @brief     brief
 * @author    caiwang213@qq.com
 * @date      2020-09-02 23:51:04
 *
 * @note
 *  stk_allow.h defines
 */
#ifndef __STK_ALLOW_H__
#define __STK_ALLOW_H__
#include "stk_base.h"

namespace stk
{
class STK_API Allow : public MsgField
{
public:
    Allow();
    Allow(const Allow &src);
    Allow(const char *buf);
    virtual ~Allow();

public:
    Allow & operator= (const Allow &src);

    virtual	void 	clear();
    virtual	bool	isvalid() const;
    virtual int32_t	to_str(string &str);
    virtual int32_t	parse(const char *buf, int len);

public:
    string		    m_strValue;                /**< value for Allow (size of attachments) */
};
}

#endif

